<template>
	<page-body>
		<view class="page">
			<view class="flex align-stretch benben-position-layout flex payResult_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex align-center justify-between flex-sub payResult_fd0_0'>
					<view class='flex align-center payResult_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
						data-url="1">
						<text class='fu-iconfont2  payResult_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<view class='flex align-center'>
						<text class='payResult_fd0_0_c1_c0'>支付结果</text>
					</view>
					<view class='flex align-center payResult_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-center benben-flex-layout payResult_flex_1">
				<image class='payResult_fd1_0' mode="aspectFit" :src='STATIC_URL+"51.png"'></image>
				<text class='payResult_fd1_1'>支付成功</text>
				<view class='flex flex-wrap align-center payResult_fd1_2'>
					<text class='payResult_fd1_2_c0'>支付方式：</text>
					<text class='payResult_fd1_2_c0' v-if="pay_id == 1">微信支付</text>
					<text class='payResult_fd1_2_c0' v-if="pay_id == 2">余额+微信支付</text>
					<text class='payResult_fd1_2_c0' v-if="pay_id == 3">余额支付</text>
				</view>
				<view class='flex flex-wrap align-center payResult_fd1_3'>
					<text class='payResult_fd1_2_c0'>支付金额：</text>
					<text class='payResult_fd1_2_c0'>{{money}}</text>
					<text class='payResult_fd1_2_c0'>元</text>
				</view>
				<button class='payResult_fd1_4' @tap.stop="chakan">查看订单</button>
				<button class='payResult_fd1_5' @tap.stop="handleJumpDiy" data-type="switchTab" :data-url="`/pages/tabBar/index/index`">返回首页</button>
			</view>

			<!---flex布局flex布局结束-->


		</view>
	</page-body>
</template>
<script>
	export default {
		components: {},


		data() {
			return {
				"pay_id": "",
				"money": "",
				type:1,
			};
		},
		computed: {

		},
		watch: {},
		onLoad(options) {
			let {
				pay_id,
				money,
				type,
			} = options
			if (pay_id !== undefined) this.pay_id = pay_id
			if (money !== undefined) this.money = money
			if (type !== undefined) this.type = type
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			chakan(){
				uni.setStorageSync('orderType', this.type)
				this.$urouter.switchTab(`/pages/tabBar/order/order`);
			},
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #fff;
		background-size: 100% auto;
	}

	.payResult_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.payResult_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333;
	}

	.payResult_fd0_0_c0_c0 {
		font-size: 32rpx;
		font-weight: 500;
		color: #333;
	}

	.payResult_fd0_0_c0 {
		width: 180rpx;
	}

	.payResult_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		line-height: 88rpx;
	}

	.payResult_flex_1 {
		padding: 88rpx 0rpx 0rpx 0rpx;
	}

	.payResult_fd1_5 {
		border: 1px solid var(--benbenbdColor2);
		background: var(--benbenbgColor1);
		border-radius: 44rpx 44rpx 44rpx 44rpx;
		width: 280rpx;
		line-height: 72rpx;
		font-size: 28rpx;
		color: var(--benbenFontColor4);
		height: 72rpx;
	}

	.payResult_fd1_4 {
		background: var(--benbenbgColor0);
		border-radius: 44rpx 44rpx 44rpx 44rpx;
		width: 280rpx;
		line-height: 72rpx;
		font-size: 28rpx;
		color: #fff;
		height: 72rpx;
		margin: 0rpx 0rpx 33rpx 0rpx;
	}

	.payResult_fd1_3 {
		font-size: 28rpx;
		font-weight: 400;
		color: rgba(102, 102, 102, 1);
		margin: 0rpx 0rpx 87rpx 0rpx;
	}

	.payResult_fd1_2_c0 {
		color: #666666;
		font-size: 28rpx;
		font-weight: 400;
		line-height: 40rpx;
	}

	.payResult_fd1_2 {
		font-size: 28rpx;
		font-weight: 400;
		color: rgba(102, 102, 102, 1);
		margin: 0rpx 0rpx 16rpx 0rpx;
	}

	.payResult_fd1_1 {
		margin: 0rpx 0rpx 32rpx 0rpx;
		font-size: 32rpx;
		font-weight: 500;
		color: #000000;
		line-height: 45rpx;
	}

	.payResult_fd1_0 {
		width: 250rpx;
		height: 180rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		margin: 0rpx 0rpx 40rpx 0rpx;
	}
</style>
